package com.yequan.polymorphism;

public class Son extends Father {

    public int num = 1000;
    public int clock = 8;

    public Son() {
        System.out.println("son init");
    }

    @Override
    public void work() {
        System.out.println("son work");
    }

    public static void sleep() {
        System.out.println("son sleep");
    }

//    @Override
//    public void run() {
//        System.out.println("son run " + num);
//    }

    public void drive() {
        System.out.println("son drive");
    }

    @Override
    public void getup(int clock) {
        System.out.println("son get up in " + clock);
    }

    @Override
    public void openFunction() {
        System.out.println("son open function");
    }
}
